package server2;

import org.zjx.core.SocketConfig;
import org.zjx.server.SocketServer;

public class SlaveServer {
    public static void main(String[] args) {
        SocketConfig socketConfig = new SocketConfig();
        socketConfig.setServerHost("127.0.0.1");
        socketConfig.setPort(8899);

        SocketServer slaveSocketServer = new SocketServer(socketConfig,null);

        slaveSocketServer.registerHandler(new UserQueryHandler());

        new Thread(slaveSocketServer::start).start();
    }
}
